import request from '@/utils/request'

export default {
  getList(params) {
    return request({
      url: '/sxOrderRecord/',
      method: 'get',
      params
    })
  },
  orderImgCreate(params) {
    return request({
      url: '/sxOrderImg/orderImgCreate',
      method: 'post',
      params
    })
  },
  orderSuccess(params) {
    return request({
      url: '/sxOrderRecord/orderSuccess',
      method: 'post',
      params
    })
  },
  photoSign(params) {
    return request({
      url: '/sxOrderRecord/photoSign',
      method: 'post',
      params
    })
  },
  sendOrderSuccess(params) {
    return request({
      url: '/sxOrderRecord/sendOrderSuccess',
      method: 'post',
      params
    })
  },
  get(params) {
    return request({
      url: '/sxOrderRecord/' + params.orderId,
      method: 'get',
      params
    })
  },

  getPage(params) {
    return request({
      url: '/sxOrderRecord/page',
      method: 'get',
      params
    })
  },

  findList(params) {
    return request({
      url: '/sxOrderRecord/',
      method: 'get',
      params
    })
  },

  update(params) {
    return request({
      url: '/sxOrderRecord/update',
      method: 'post',
      params
    })
  },

  insert(params) {
    return request({
      url: '/sxOrderRecord/insert',
      method: 'post',
      params
    })
  },

  orderCreate(params) {
    return request({
      url: '/sxOrderRecord/orderCreate',
      method: 'post',
      params
    })
  },

  unifiedOrder(params) {
    return request({
      url: '/pay/unifiedOrder',
      method: 'post',
      params
    })
  },

  remove(params) {
    return request({
      url: '/sxOrderRecord/delete',
      method: 'post',
      params
    })
  },

  deleteCloseOrder(params) {
    return request({
      url: '/sxOrderRecord/deleteCloseOrder',
      method: 'post',
      params
    })
  }
}
